package com.blueocean_health.care.management.transfer.client;
import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.blueocean_health.care.management.domain.base.SysResult;
import com.blueocean_health.care.management.domain.dto.ManyToManyPercentagesDto;
import com.blueocean_health.care.management.domain.vo.ManyToManyDvo;
import com.blueocean_health.care.management.transfer.client.ManyToManyPercentClientService.HystrixClientFallback;

/**
 * 多对多统计报表  2018年7月18日11:36:07
 * @author wuyanli
 *
 */
@FeignClient(value = "statisticserver",fallback = HystrixClientFallback.class)
public interface ManyToManyPercentClientService {
	/**
	 * 多对多提成报表  2018年5月25日16:24:38
	 * @return
	 */
	@RequestMapping(value="percentages/list",method = RequestMethod.POST)
	SysResult getPercentagesList(ManyToManyDvo manyDvo);
//	SysResult getPercentagesList(@RequestBody String manyToManyDvo);

	/**
	 * 导出多对多提成表 Excel  2018年6月1日16:41:44
	 * @param map
	 * @return
	 */
	@RequestMapping(value="percentages/excel")
	List<ManyToManyPercentagesDto> getPercentagesListExcel(ManyToManyDvo manyDvo);
	 @Component
	  static class HystrixClientFallback implements ManyToManyPercentClientService {

		/* (non-Javadoc)
		 * @see com.blueocean_health.care.management.transfer.client.ManyToManyPercentClientService#getPercentagesList(com.blueocean_health.care.management.domain.vo.ManyToManyDvo)
		 */
		@Override
		public SysResult getPercentagesList(ManyToManyDvo manyDvo) {
			// TODO Auto-generated method stub
			return null;
		}

		/* (non-Javadoc)
		 * @see com.blueocean_health.care.management.transfer.client.ManyToManyPercentClientService#getPercentagesListExcel(com.blueocean_health.care.management.domain.vo.ManyToManyDvo)
		 */
		@Override
		public List<ManyToManyPercentagesDto> getPercentagesListExcel(ManyToManyDvo manyDvo) {
			// TODO Auto-generated method stub
			return null;
		}

		
		 
		 
	 }
}
